import axios from "../utlis/require";

export const getComments = function (id,params) {
    return axios({
        url:`/api/getcomments/${id}`,
        params
    })
} 

export const postComments = function (id,content) {
    return axios({
        url:`/api/postcomment/${id}`,
        method: 'post',
        data: 'content=' + content
    })
} 